using LazyLoadDotNet.DataAccess;

namespace LazyLoadDotNet.Domain
{
    public class AddressLoader : ILoader<Address>
    {
        private readonly AddressPersistence persistence = new AddressPersistence();

        public void Load(Address subject)
        {
            Address.Copy(persistence.Get(subject.Id), subject);
        }
    }
}